import request from '@/utils/request'

// 查询交付小组列表
export function listPayGroup(query) {
  return request({
    url: '/course/PayGroup/list',
    method: 'get',
    params: query
  })
}

// 查询交付小组
export function allPayGroups(quey) {
  return request({
    url: '/course/PayGroup/all',
    method: 'get',
  })
}

// 查询交付小组详细
export function getPayGroup(id) {
  return request({
    url: '/course/PayGroup/view/' + id,
    method: 'get'
  })
}

// 新增交付小组
export function addPayGroup(data) {
  return request({
    url: '/course/PayGroup/add',
    method: 'post',
    data: data
  })
}

// 修改交付小组
export function updatePayGroup(data) {
  return request({
    url: '/course/PayGroup/update',
    method: 'put',
    data: data
  })
}

// 删除交付小组
export function delPayGroup(id) {
  return request({
    url: '/course/PayGroup/delete/' + id,
    method: 'delete'
  })
}

